home *** CD-ROM | disk | FTP | other *** search
- Path: connix.com!news
- From: Scott Hawley <shawley@connix.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Help on assignment
- Date: Wed, 21 Feb 1996 13:54:50 -0800
- Organization: SHAWLEY SYSTEMS
- Message-ID: <312B94AA.5624@connix.com>
- References: <4gdmjm$1kr@cloner4.netcom.com>
- NNTP-Posting-Host: shawley.connix.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- I would do your home work but I will give a couple of hints.
-
- > Write a function that normally takes one argument, the address of a
- > string, and prints that string once. However, if a second, type int
- > argument is provided and is greater than zero, the function prints the
- > string the number of times equal to the number of times indicated.
-
- hint: int main(int argc, char **argv)
-
- > Second one is
- > Write a function called zerosmaller that is passed to two int arguments
- > by reference and then sets the smaller of the two numbers to 0. Write a
-
- hint: void set_smaller(int& val1, int& val2)
-